<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>转账确认</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  <link rel="stylesheet" href="../static/framework/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/framework/reset.css">
  <link rel="stylesheet" href="../static/css/footer.css">
  <link rel="stylesheet" href="../static/css/transferAssure.css">
  <link href="../static/layui-v2.9.1/layui/css/layui.css" rel="stylesheet">
  <script src="../static/layui-v2.9.1/layui/layui.js"></script>

  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f0f0f0;
    }

    .footer {
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      text-align: center;
      background-color: #f1f1f1;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .transfer {
      list-style-type: none;
      padding: 0;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin: 0 auto;
    }

    .transfer li {
      padding: 10px;
      border-bottom: 1px solid #eee;
    }

    .transfer li:last-child {
      border-bottom: none;
    }

    .transfer input[type="text"],
    .transfer input[type="password"] {
      width: calc(100% - 20px);
      padding: 8px;
      margin: 5px 0;
      border: 1px solid #ccc;
      border-radius: 3px;
      box-sizing: border-box;
    }

    .password {
      margin-top: 10px;
    }

    .transfer input[type="submit"] {
      background-color: #4CAF50;
      color: white;
      border: none;
      padding: 10px 20px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      border-radius: 3px;
      cursor: pointer;
      margin-top: 10px;
      width: 100%;
      box-sizing: border-box;
    }

    .transfer input[type="submit"]:hover {
      background-color: #45a049;
    }
  </style>
</head>

<body>
  <div class="wrapper">
    <!-- 标题区 -->
    <header>
      <i class="fa fa-angle-left fa-2x" onclick="location.href='/recipientList'"></i>
      <p>转账确认</p>
      <p></p>
    </header>

    <br>
    <br>

    <form action="/payment/addPayment" method="post">
      <!-- 信息确认区 -->
      <ul class="transfer">
        <li>
          <input type="text" id="recardId" name="recardId" placeholder="转出账户：">
        </li>
        <li>
          <input type="text" id="recName" name="recName" placeholder="收款人姓名：">
        </li>
        <li>
          <input type="text" id="money" name="money" placeholder="金额">
        </li>

        <li>
          选择支付卡：
          <select class="form-select" name="cardId" style="width: calc(100% - 20px);">
            <option name="cardId" th:each="card : ${session.cards}" th:if="${card.statusId} == 1" th:value="${card.idNumber}" th:text="${card.idNumber} + '(余额:' + ${card.balance} + ')'" >选择卡号</option>
          </select>
        </li>

        <li>
          <input type="password" id="password" name="password" placeholder="支付密码">
        </li>


        <div style="color: red" th:text="${session.msg}"></div>

        <li>
          <div class="button_sub">
            <button type="submit">确认转账</button>
          </div>
        </li>

      </ul>
    </form>


    <footer class="footer">
      <div>
        <button type="button" class="layui-btn">
          <i class="layui-icon layui-icon-left"></i>
        </button>
        <button type="button" class="layui-btn">
          <i class="layui-icon layui-icon-right"></i>
        </button>
      </div>
    </footer>
  </div>

</body>

</html>